package com.aier.admin.entity;

import static javax.persistence.GenerationType.IDENTITY;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

import com.aier.common.common.Constant;

/**
 * IcCard entity. @author MyEclipse Persistence Tools
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "ic_card", catalog = "abc", uniqueConstraints = @UniqueConstraint(columnNames = {
        "ichead", "icbody", "icfoot" }))
public class IcCard implements java.io.Serializable {

    // Fields

    private Long icid;
    private String ichead;
    private String icbody;
    private String icfoot;
    private Short ictype;
    private Short icstate;
    private String icpwd;
    private Short icarea;
    private Short icpuser;
    private Short icpteacher;
    private String icisn;
    private Timestamp icdate;
    private Timestamp icedate;
    
    private String icName;
    private String icnum;
    
    private String cardnum;
    private String time_str;
    private String stateName;
    private String usetype;
    private Integer headnum;
    private String cardstate;
    private String icedate_str;
    // Constructors

    /** default constructor */
    public IcCard() {
    }
    // Property accessors
    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "icid", unique = true, nullable = false)
    public Long getIcid() {
        return this.icid;
    }

    public void setIcid(Long icid) {
        this.icid = icid;
    }

    @Column(name = "ichead", length = Constant.num_10)
    public String getIchead() {
        return this.ichead;
    }

    public void setIchead(String ichead) {
        this.ichead = ichead;
    }

    @Column(name = "icbody", length = Constant.num_10)
    public String getIcbody() {
        return this.icbody;
    }

    public void setIcbody(String icbody) {
        this.icbody = icbody;
    }

    @Column(name = "icfoot", length = Constant.num_10)
    public String getIcfoot() {
        return this.icfoot;
    }

    public void setIcfoot(String icfoot) {
        this.icfoot = icfoot;
    }

    @Column(name = "ictype", nullable = false)
    public Short getIctype() {
        return this.ictype;
    }

    public void setIctype(Short ictype) {
        this.ictype = ictype;
    }

    @Column(name = "icstate", nullable = false)
    public Short getIcstate() {
        return this.icstate;
    }

    public void setIcstate(Short icstate) {
        this.icstate = icstate;
    }
    public String getIcpwd() {
        return icpwd;
    }
    public void setIcpwd(String icpwd) {
        this.icpwd = icpwd;
    }
    public Short getIcarea() {
        return icarea;
    }
    public void setIcarea(Short icarea) {
        this.icarea = icarea;
    }
    public Short getIcpuser() {
        return icpuser;
    }
    public void setIcpuser(Short icpuser) {
        this.icpuser = icpuser;
    }
    public Short getIcpteacher() {
        return icpteacher;
    }
    public void setIcpteacher(Short icpteacher) {
        this.icpteacher = icpteacher;
    }
    public String getIcisn() {
        return icisn;
    }
    public void setIcisn(String icisn) {
        this.icisn = icisn;
    }
    public Timestamp getIcdate() {
        return icdate;
    }
    public void setIcdate(Timestamp icdate) {
        this.icdate = icdate;
    }
    public String getIcName() {
        return icName;
    }
    public void setIcName(String icName) {
        this.icName = icName;
    }
    public String getIcnum() {
        return icnum;
    }
    public void setIcnum(String icnum) {
        this.icnum = icnum;
    }
    public String getCardnum() {
        return cardnum;
    }
    public void setCardnum(String cardnum) {
        this.cardnum = cardnum;
    }
    public String getTime_str() {
        return time_str;
    }
    public void setTime_str(String time_str) {
        this.time_str = time_str;
    }
    public String getStateName() {
        return stateName;
    }
    public void setStateName(String stateName) {
        this.stateName = stateName;
    }
    public String getUsetype() {
        return usetype;
    }
    public void setUsetype(String usetype) {
        this.usetype = usetype;
    }
    public Integer getHeadnum() {
        return headnum;
    }
    public void setHeadnum(Integer headnum) {
        this.headnum = headnum;
    }
    public String getCardstate() {
        return cardstate;
    }
    public void setCardstate(String cardstate) {
        this.cardstate = cardstate;
    }
    public Timestamp getIcedate() {
        return icedate;
    }
    public void setIcedate(Timestamp icedate) {
        this.icedate = icedate;
    }
    public String getIcedate_str() {
        return icedate_str;
    }
    public void setIcedate_str(String icedate_str) {
        this.icedate_str = icedate_str;
    }
    
}